/*
 * Copyright (c) 2021. Moses All Right Reserved
 */

package com.moses.design_patterns.prototype;

/**
 * @author Moses
 * @email shenhuohui@gmail.com
 * @date 2021/4/10 16:00
 */
public class Client {
    public static void main(String[] args) throws CloneNotSupportedException {
        Prototype prototype1 = new Prototype();
        System.out.println(prototype1.toString());
        Prototype prototype2 = (Prototype) prototype1.clone();
        System.out.println(prototype2.toString());
        System.out.println(prototype1 == prototype2);
    }
}
